package cn.book.book.domain;

import cn.book.book.vo.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
@Data
@ToString
@NoArgsConstructor
public class Author extends BaseEntity implements Serializable {
    /** 编号 */

    private Long id;

    private String penname;

    private String realname;

    /** 加入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date addtime;

    private String phone;

    private double money;

    private String bank;

    private String cardno;

    private Long userId;

    @Override
    public String toString() {
        return "Author{" +
                "id=" + id +
                ", penname='" + penname + '\'' +
                ", realname='" + realname + '\'' +
                ", addtime=" + addtime +
                ", phone='" + phone + '\'' +
                ", money=" + money +
                ", bank='" + bank + '\'' +
                ", cardno='" + cardno + '\'' +
                ", userId=" + userId +
                ";params:"+super.getParams()+
                '}';
    }
}
